package cn.quevo.beetl.function;

import org.beetl.core.Context;
import org.beetl.core.Function;

import cn.quevo.core.lang.StringUtils;

/**
 * 判断是否为空
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018-03-09 18:24:01
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 * @return
 */
public class BlankExpressionFunction implements Function {

    @Override
    public Object call(Object[] paras, Context ctx) {
        return StringUtils.isBlank(paras) || paras.length <= 0 || StringUtils.isBlank(paras[0]);
    }

}
